﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhanMemDoVui.BusinessObject
{
    [Serializable]
    public class QuestnAns
    {
#region Attributes
        private int _maCh;
        private String _question;
        private String _ans1;
        private String _ans2;
        private String _ans3;
        private String _ans4;
        private int _rAns;
        private String _difficulty;
        private String _createdBy;
        private String _maBank;
#endregion
#region Default_Constructor
        public QuestnAns()
        {
            _maCh = -1;
            _question = String.Empty;
            _ans1 = String.Empty;
            _ans2 = String.Empty;
            _ans3 = String.Empty;
            _ans4 = String.Empty;
            _rAns = -1;
            _difficulty = String.Empty;
            _createdBy = String.Empty;
            _maBank = "Temp";
        }
#endregion
#region Constructor_Args
        public QuestnAns(int maCH, String question, String ans1, String ans2, String ans3, String ans4, int rAns, String diff, String createdBy)
        {
            _maCh = maCH;
            _question = question;
            _ans1 = ans1;
            _ans2 = ans2;
            _ans3 = ans3;
            _ans4 = ans4;
            _rAns = rAns;
            _difficulty = diff;
            _createdBy = createdBy;
            _maBank = "Temp";
        }
        public QuestnAns(int maCH, String question, String ans1, String ans2, String ans3, String ans4, int rAns, String diff, String createdBy, String maBank)
        {
            _maCh = maCH;
            _question = question;
            _ans1 = ans1;
            _ans2 = ans2;
            _ans3 = ans3;
            _ans4 = ans4;
            _rAns = rAns;
            _difficulty = diff;
            _createdBy = createdBy;
            _maBank = maBank;
        }
#endregion
#region Property
        public int MaCH
        {
            get { return _maCh; }
            set { _maCh = value; }
        }
        public String Question
        {
            get { return _question; }
            set { _question = value; }
        }
        public String Ans1
        {
            get { return _ans1; }
            set { _ans1 = value; }
        }
        public String Ans2
        {
            get { return _ans2; }
            set { _ans2 = value; }
        }
        public String Ans3
        {
            get { return _ans3; }
            set { _ans3 = value; }
        }
        public String Ans4
        {
            get { return _ans4; }
            set { _ans4 = value; }
        }
        public int RAns
        {
            get { return _rAns; }
            set { _rAns = value; }
        }
        public String Difficulty
        {
            get { return _difficulty; }
            set { _difficulty = value; }
        }
        public String CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }
        public String MaBank
        {
            get { return _maBank; }
            set { _maBank = value; }
        }
#endregion
    }
}
